<!doctype html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>新增地址</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Place favicon.ico in the root directory -->
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="js/layui/css/layui.css">
    <script src="js/layui/layui.js"></script>
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/style.css">
    <style type="text/css">

    </style>
</head>
<body class="">
<div class="addAdress">
    <div  class="mian layui-carousel layui-col-xs12 layui-col-sm12 layui-col-md12" id="app">
        <!-- 头部分-->
        <div class="layui-row tl-top">
            <div class="layui-col-xs1 layui-col-sm1 layui-col-md1 tl-leftalign">
                <img src="img/img/icon_back.png"/>
            </div>
            <div class="layui-col-xs10 layui-col-sm10 layui-col-md10 tl-align">
                新增地址
            </div>
            <div class="layui-col-xs1 layui-col-sm1 layui-col-md1 tl-rightalign">
                <p class="tl-align">保存</p>
            </div>
        </div>
        <!-- 主体-->
        <div class="cent">
            <!-- 收获地址-->
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label">收货人：</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" required  lay-verify="required" placeholder="输入姓名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">手机号：</label>
                    <div class="layui-input-block">
                        <input type="text" name="phone" required  lay-verify="required" placeholder="请输手机号" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">所在区域：</label>
                    <div class="layui-input-block">
                        <input type="text" name="城市" required  lay-verify="required" placeholder="选择城市" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注：</label>
                    <div class="layui-input-block">
                        <textarea name="desc" placeholder="请输入详细地址" class="layui-textarea"></textarea>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });})
</script>
</body>
</html>
